﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Site.Models.Interfaces;
using Site.Models;

namespace Site.Controllers
{
    public class TasksController : Controller
    {
        //
        // GET: /Tasks/
        TasksRepository db;

        public TasksController(TasksRepository _db)
        {
            this.db = _db;
        }

        public ViewResult Index()
        {
            return View(db.Tasks);
        }

    }
}
